package com.weactivity.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Data
@Repository
@NoArgsConstructor
@AllArgsConstructor
//可以实现Clone接口
public class Activity {

    //活动id
    private int id;
    //活动名称
    private String name;

    //活动类型
    private int type;

    //活动描述
    private String describe;

    //活动等级
    private int grade;

    //活动开始时间
    private String beginTime;
    //活动结束时间
    private String endTime;
    //活动创建时间
    private LocalDateTime createTime;
    //活动更新时间
    private LocalDateTime updateTime;

    //活动报告最晚生成时间
    private String s_time;

    //活动链接
    private String link;

    //活动状态 0为未开始 1为进行中 2为已结束
    private int aStage;
    // 复制构造函数
    public Activity(Activity original) {
        this.id = original.id;
        this.name = original.name;
        this.type = original.type;
        this.describe = original.describe;
        this.grade = original.grade;
        this.beginTime = original.beginTime;
        this.endTime = original.endTime;
        this.createTime = original.createTime;
        this.updateTime = original.updateTime;
        this.s_time = original.s_time;
        this.link = original.link;
        this.aStage = original.aStage;
    }

}
